﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Runtime.Serialization;
using System.Diagnostics;

namespace PIP.Shared
{
    [DataContract]
    [DebuggerDisplay("Index:{Index}")]
    public class DataContainer
    {
        [DataMember]
        public Int32 Index { get; set; }

        [DataMember]
        public Bitmap Data { get; set; }

        [DataMember]
        public DateTime StartTime { get; set; }

        public DataContainer(Int32 index, Bitmap data, DateTime startTime)
        {
            Index = index;
            Data = data;
            StartTime = startTime;
        }

        public DataContainer(Int32 index, Bitmap data)
            : this(index, data, DateTime.MinValue)
        {

        }
    }
}
